package ch14_advanced_gui;
import java.awt.*;
import javax.swing.*;
public class JFrameWithExplicitContentPane2 extends JFrame
{
   private final int SIZE = 180;
   private Container con = getContentPane();
   private JButton button = new JButton("Press Me");
   public JFrameWithExplicitContentPane2 ()
   {
      super("Frame");
      setSize(SIZE, SIZE);
      setVisible(true);
      con.setLayout(new FlowLayout());
      con.add(button);
      con.setBackground(Color.BLUE);
   }
   public static void main(String[] args)
   {
      JFrameWithExplicitContentPane2 frame =
         new JFrameWithExplicitContentPane2();
   }
}
